 @extends('layouts.base')      
	@section('sidebar')
       
       
       
       <div class="page-content">
			<div class="page-header">
				<div class="title_head">
					管理员管理 <small style="color:#666;"><i class="icon-double-angle-right"></i>管理员列表 </small>
				</div>
			</div>
		</div><!-- /.page-header -->
		
		<!-- PAGE CONTENT START -->
		<div class="col-xs-12" style="">
			<div class="well clearfix visible-md visible-lg hidden-sm hidden-xs action-buttons" style="margin-bottom: 5px; padding: 8px 0; height: 52px;">
				<div class="input-append pull-left col-xs-12">
					<form method="get" action="/admin/index">
									
						<div class="input-group col-xs-1 col-sm-2">
							<input name="account" placeholder="输入账号"/>
						</div>
						<div class="input-group col-xs-3">
							<span class="input-group-btn">
								<button class="btn btn-success btn-sm" type="submit">搜索<i class="icon-search icon-on-right bigger-110"></i></button>
							</span>
						</div>	
										
						<div class="result_view  pull-right col-xs-1">
							<button onclick='jump("/admin/add");' type="button" class="btn btn-sm btn-success"><i class="splashy-add_small"></i>添加</button>
						</div>
					</form>
				</div>
			</div>
			<table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
				<thead>
					<tr>
						<th>账号</th>
						<th>添加时间</th>
						<th width="10%">操作</th>
					</tr>
				</thead>
				<tbody role="alert" aria-live="polite" aria-relevant="all">
					@if($data['code'] == 1)		
						@foreach ($data['data'] as $item)
							<tr class="odd">
	        					<td>{{$item->account}}</td>
	        					<td>{{$item->created_at}}</td>
								<td class=" ">
									<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
										<a href="/admin/edit?id={{$item->id}}" class="green" title="修改信息">
											<i class="icon-edit bigger-130"></i>
										</a>
										<a href="/admin/delete?id={{$item->id}}" class="red" title="删除信息">
											<i class="icon-trash bigger-130"></i>
										</a>
									</div>
								 </td>
							</tr>
						@endforeach	
									
				@else
					<tr class="odd">
						<td colspan="3" class="center">{{$data['msg']}}</td>
					</tr>
				@endif				
				</tbody>
			</table>
								
			@if($data['data']->hasPages())
				<tfoot>
					<tr>
						<th colspan="50" class="center">
							{{ $data['data']->appends(request()->all())->links() }}
						</th>
					</tr>
				</tfoot>
			@endif
			
		</div><!-- PAGE CONTENT ENDS -->

    @endsection
    
	
	<script>
		
		layer.msg('hello');

  
	</script>		